package com.pda.xinma.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.pda.xinma.R;
import com.pda.xinma.bean.HandingInStaticsBean;
import com.wangshen.base.ui.mvp.base.adapter.BaseAdapter;

import java.util.List;

public class HandingInStaticsAdapter extends BaseAdapter<HandingInStaticsBean.InfoVoListBean> {
    public HandingInStaticsAdapter(int layoutResId, @Nullable List<HandingInStaticsBean.InfoVoListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, HandingInStaticsBean.InfoVoListBean item) {
        super.convert(helper, item);
        helper.setText(R.id.tv_productModelAndBatch,item.getProductModelAndBatch());
        helper.setText(R.id.tv_planWeight,"计划："+item.getPlanWeight());
        helper.setText(R.id.tv_cumulativeWeight,"累计："+item.getCumulativeWeight());
    }
}
